package com.ssm.student.dao;

import com.ssm.student.eo.TeacherEoPage;
import com.ssm.student.model.Teacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/*
 * 操作数据库方法的对接
 * */
@Mapper
public interface TeacherMapper {
    //添加教师
    int insertTeacher(Teacher teacher);

    //通过教师编号获取数量
    int getTno(String tno);

    //通过主键更新教师
    int updateTeacher(Teacher teacher);
    //通过主键删除教师
    int delTeacher (Integer teacherid);
    //根据条件获取相关信息
    List<TeacherEoPage> getWhereAll(TeacherEoPage teacherEoPage);
}
